<?php


### Site
  $this->Routes[] = array('',                                          array('module' => 'site', 'action' => 'show'));// default route
  $this->Routes[] = array('site/$id',                                  array('module' => 'site', 'action' => 'show'));
  $this->Routes[] = array('site/$id/$item',                            array('module' => 'site', 'action' => 'show'));
  
  
  
### Admin pages
  # Designer presentation
  $this->Routes[] = array('admin',                                     array('module' => 'designer', 'action' => 'index'));
  $this->Routes[] = array('admin/designer',                            array('module' => 'designer', 'action' => 'index'));
  $this->Routes[] = array('designer/$id',                              array('module' => 'designer', 'action' => 'index'));
  $this->Routes[] = array('designer/$id/$item',                        array('module' => 'designer', 'action' => 'index'));
  
  # Alias actions
  $this->Routes[] = array('admin/designer/change_target/$id/$tar',     array('module' => 'designer', 'action' => 'change_target'));
  
  # Concepts actions
  $this->Routes[] = array('admin/designer/concept/$concept_id',        array('module' => 'designer', 'action' => 'concept'));
  $this->Routes[] = array('admin/designer/add_concept/$menu_item_id',  array('module' => 'designer', 'action' => 'add_concept'));
  $this->Routes[] = array('admin/designer/change_concept/$concept/$id',array('module' => 'designer', 'action' => 'change_menu_item_concept'));
  $this->Routes[] = array('admin/designer/remove_concept/$concept_id', array('module' => 'designer', 'action' => 'remove_concept'));
  
  # Elements actions
  $this->Routes[] = array('admin/designer/add_element/$id/$type',      array('module' => 'designer', 'action' => 'add_element'));
  $this->Routes[] = array('admin/designer/add_element/$id/$type/$param',
                                                            array('module' => 'designer', 'action' => 'add_element'));
  $this->Routes[] = array('admin/designer/remove_element/$id',         array('module' => 'designer', 'action' => 'remove_element'));
  $this->Routes[] = array('admin/designer/change_settings',            array('module' => 'designer', 'action' => 'change_settings'));
  
  # Sites / menu items
  $this->Routes[] = array('admin/designer/add_menu_item',              array('module' => 'designer', 'action' => 'add_menu_item'));
  $this->Routes[] = array('admin/designer/add_sub_item/$element_id/$parameter',
                                                            array('module' => 'designer', 'action' => 'add_sub_item'));
  $this->Routes[] = array('admin/designer/update_sub_item/$id',        array('module' => 'designer', 'action' => 'update_sub_item'));
  $this->Routes[] = array('admin/designer/delete_sub_item/$id',       array('module' => 'designer', 'action' => 'delete_sub_item'));
  
  # Miscellaneous
  $this->Routes[] = array('admin/designer/change_image_banner/$id',    array('module' => 'designer', 'action' => 'change_image_banner'));
  
  # Sorting actions
  $this->Routes[] = array('admin/designer/position_modules',           array('module' => 'designer', 'action' => 'position_modules'));
  $this->Routes[] = array('admin/designer/position_sections',          array('module' => 'designer', 'action' => 'position_sections'));
  $this->Routes[] = array('admin/designer/position_sub_menu',      array('module' => 'designer', 'action' => 'position_sub_menu'));
  $this->Routes[] = array('admin/designer/position_cascade_menu/$id',  array('module' => 'designer', 'action' => 'position_cascade_menu'));
  
  
  
  
  //$this->Routes[] = array('admin/edit_element/$id',                    array('module' => 'designer', 'action' => 'edit_element'));
  
  
### Articles
  $this->Routes[] = array('admin/articles',                            array('module' => 'articles', 'action' => 'index'));
  $this->Routes[] = array('admin/articles/add/',                       array('module' => 'articles', 'action' => 'add'));
  $this->Routes[] = array('admin/articles/add/menu_item/$menu_item_id',
                                                                 array('module' => 'articles', 'action' => 'add'));
  $this->Routes[] = array('admin/articles/create/',                    array('module' => 'articles', 'action' => 'create'));
  $this->Routes[] = array('admin/articles/edit/$article_id',           array('module' => 'articles', 'action' => 'edit'));
  $this->Routes[] = array('admin/articles/update/$article_id',         array('module' => 'articles', 'action' => 'update'));
  $this->Routes[] = array('admin/articles/delete/$article_id',         array('module' => 'articles', 'action' => 'delete'));
  $this->Routes[] = array('admin/articles/mass_delete',                array('module' => 'articles', 'action' => 'mass_delete'));
  $this->Routes[] = array('admin/articles/tag',                        array('module' => 'articles', 'action' => 'tag'));
  $this->Routes[] = array('admin/articles/add_tag/$tag',               array('module' => 'articles', 'action' => 'add_tag'));
  $this->Routes[] = array('admin/articles/tags',                       array('module' => 'articles', 'action' => 'tags'));
  $this->Routes[] = array('admin/articles/update_tag/$tag_id',         array('module' => 'articles', 'action' => 'update_tag'));
  
### Collections browser
  $this->Routes[] = array('admin/collections',                         array('module' => 'collections', 'action' => 'index'));
  $this->Routes[] = array('admin/collections/show/$id',                array('module' => 'collections', 'action' => 'index'));
  $this->Routes[] = array('admin/collections/create',                  array('module' => 'collections', 'action' => 'create'));
  $this->Routes[] = array('admin/collections/update/$id',              array('module' => 'collections', 'action' => 'update'));
  $this->Routes[] = array('admin/collections/delete/$id',              array('module' => 'collections', 'action' => 'delete'));
  $this->Routes[] = array('admin/collections/add_sub_item/$id',        array('module' => 'collections', 'action' => 'add_sub_item'));
  $this->Routes[] = array('admin/collections/save_sub_item/$id',       array('module' => 'collections', 'action' => 'save_sub_item'));
  $this->Routes[] = array('admin/collections/delete_sub_item/$id',     array('module' => 'collections', 'action' => 'delete_sub_item'));
  $this->Routes[] = array('admin/collections/position_sub_elements',   array('module' => 'collections', 'action' => 'position_sub_elements'));
  
### Files browser
  $this->Routes[] = array('admin/files',                               array('module' => 'files', 'action' => 'index'));
  $this->Routes[] = array('admin/files/list',                          array('module' => 'files', 'action' => 'iframe_list'));
  $this->Routes[] = array('admin/files/upload',                        array('module' => 'files', 'action' => 'upload'));
  $this->Routes[] = array('admin/files/mini_upload',                   array('module' => 'files', 'action' => 'upload', 'template' => 'mini_show'));
  $this->Routes[] = array('admin/files/delete/$id',                    array('module' => 'files', 'action' => 'delete'));
  $this->Routes[] = array('admin/files/update/$id',                    array('module' => 'files', 'action' => 'update'));
  
### Images browser
  $this->Routes[] = array('admin/images',                              array('module' => 'images', 'action' => 'index'));
  $this->Routes[] = array('admin/images/list',                         array('module' => 'images', 'action' => 'list_images'));
  $this->Routes[] = array('admin/images/edit/$id',                     array('module' => 'images', 'action' => 'edit_image'));
  $this->Routes[] = array('admin/images/update/$id',                   array('module' => 'images', 'action' => 'update_image'));
  $this->Routes[] = array('admin/images/mass_delete',                  array('module' => 'images', 'action' => 'mass_delete'));
  $this->Routes[] = array('admin/images/delete/$image_id',             array('module' => 'images', 'action' => 'delete'));
  
  # List images with special show template
  $this->Routes[] = array('admin/images/list/$image_template',         array('module' => 'images', 'action' => 'list_images'));
  
  
  # Upload actions
  $this->Routes[] = array('admin/images/upload',                       array('module' => 'images', 'action' => 'upload', 'image_template' => $this->Params['image_template']));
  
  # Tags
  $this->Routes[] = array('admin/images/tags',                         array('module' => 'images', 'action' => 'tags'));
  $this->Routes[] = array('admin/images/add_tag',                      array('module' => 'images', 'action' => 'add_tag'));
  $this->Routes[] = array('admin/images/update_tag/$tag_id',           array('module' => 'images', 'action' => 'update_tag'));
  $this->Routes[] = array('admin/images/delete_tag/$tag_id',           array('module' => 'images', 'action' => 'delete_tag'));
  
  # Image tags
  $this->Routes[] = array('admin/images/tag_images',                   array('module' => 'images', 'action' => 'tag_images'));
  $this->Routes[] = array('admin/images/untag_images',                 array('module' => 'images', 'action' => 'untag_images'));
  $this->Routes[] = array('admin/images/tag/$tag/$image_template',     array('module' => 'images', 'action' => 'list_images'));
  $this->Routes[] = array('admin/delete_image_tag/$tag_id/$image_id',  array('module' => 'images', 'action' => 'delete_image_tag'));
  
  
### User pages
  $this->Routes[] = array('logout',                                    array('module' => 'users', 'action' => 'logout'));
  
  
### Superadmin actions
  $this->Routes[] = array('superadmin',                                array('module' => 'superadmin', 'action' => 'index'));
  
  # Companies
  $this->Routes[] = array('superadmin/company/add',                    array('module' => 'superadmin', 'action' => 'company_add'));
  $this->Routes[] = array('superadmin/company/create',                 array('module' => 'superadmin', 'action' => 'company_create'));
  $this->Routes[] = array('superadmin/company/$id',                    array('module' => 'superadmin', 'action' => 'company_overview'));
  $this->Routes[] = array('superadmin/company/update/$id',             array('module' => 'superadmin', 'action' => 'company_update'));
  $this->Routes[] = array('superadmin/company/delete/$id',             array('module' => 'superadmin', 'action' => 'company_delete'));
  
  # Users
  $this->Routes[] = array('superadmin/user/add/$id',                   array('module' => 'superadmin', 'action' => 'user_add'));
  $this->Routes[] = array('superadmin/user/create/$id',                array('module' => 'superadmin', 'action' => 'user_create'));
  $this->Routes[] = array('superadmin/user/$id',                       array('module' => 'superadmin', 'action' => 'user_overview'));
  $this->Routes[] = array('superadmin/user/update/$id',                array('module' => 'superadmin', 'action' => 'user_update'));
  $this->Routes[] = array('superadmin/user/delete/$id',                array('module' => 'superadmin', 'action' => 'user_delete'));
  
  
  
  
?>